import React from 'react'
import {Outlet ,  useNavigate} from 'react-router-dom'


export default function Home() {
  const navigate = useNavigate();

  const GoMusicHandle = () => {
    navigate("/main/home/music/?name=厉飞雨&age=18")
  }

  const GoNewsHandle = () => {
    navigate("/main/home/news/?name=韩立&age=14300")
  }

  return (
    <div>
      <h3>home</h3>
      <button onClick={GoMusicHandle}>音乐</button>
      <button onClick={GoNewsHandle}>新闻</button>
      <Outlet/>
    </div>
  )
}
